package com.ximu.user.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author ximu
 * @since 2023-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserVo对象", description="")
public class UserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "头像")
    private String img;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "会员字典（0无会员，1月卡，2季卡,3年卡）")
    private Integer vip;

    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "积分")
    private Integer integral;

    @ApiModelProperty(value = "会员到期时间")
    private Date vipDate;

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", img='" + img + '\'' +
                ", password='" + password + '\'' +
                ", vip=" + vip +
                ", balance=" + balance +
                ", integral=" + integral +
                ", vipDate=" + vipDate +
                '}';
    }
}
